package Work;

public class myStringTest {
    public static void main(String[] args) {

        String i = "hello java";

        String j = "hello java";

        if (i.equals(j)){

            String a = i.replace(" java","world");
            String b = j.replace(" java","world");

            System.out.println(a);
            System.out.println(b);

        }
    }
}
